Skip to content

docs: add instructions for deleting orphaned scanning VMs #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025

Conversation

kirklandnuts
Copy link
Contributor

@kirklandnuts kirklandnuts commented May 6, 2025

Summary

If AWLS is deprovisioned while a scan is in progress, any existing scanning VMs will remain and cannot be deleted by terraform because they are dynamically created by sidekick. In this case, terraform destroy will fail to delete a subnet it created (because the subnet is still in use by the orphaned scanning VMs) and error out.

To resolve this, the scanning VMs must be deleted before re-running terraform destroy. I've added a note in the README to explain this and guide users through the resolution. I also updated the scanning subscription permissions to allow the deployment service princpal to delete VMs as is required.

How did you test this change?

I verified that running the command indeed deleted the scanning VMs, and successfully ran terraform destroy when it was previously failing due to this issue.

Issue

AWLS2-396

@kirklandnuts kirklandnuts requested review from a team as code owners May 6, 2025 18:55
@kirklandnuts kirklandnuts self-assigned this May 6, 2025
@kirklandnuts kirklandnuts merged commit b8b42be into main May 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants